<template>
    <div class="form-input">
        <Input v-model="newValue" @input="handlerChange"/>
    </div>
</template>
<script>
import { Component, Vue, Model, Watch } from "vue-property-decorator";
@Component
export default class extends Vue{
    @Model('change', { type: String }) value!: string
    newValue = "";
    @Watch('value')
    onValueChange(value) {
        this.newValue = value;
    }
    mounted () {
        this.newValue = this.value;
    }
    handlerChange(value) {
        this.$emit('change', value);
    }
}
</script>
